﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace VISS.Web.Frontend.Modules.General {

    public partial class HomePage : System.Web.UI.Page {

        public string PageTitle { get; set; }
        public string Keywords { get; set; }
        public string Description { get; set; }

        protected void Page_Load(object sender, EventArgs e) {
            UserContext userContext = LoginFactory.GetCurrentUser();
            if (userContext != null) {
                Response.Redirect("/profile?u=" + userContext.UserKey);
                return;
            }

            PageTitle = StringResources.SEO.TitleHome + " | " + StringResources.SEO.TitleDefault;
            Description = StringResources.SEO.DescriptionDefault;
            Keywords = StringResources.SEO.KeywordsDefault;
        }
    }
}
